<?php
header('Content-Type:text/html;charset=utf-8');
session_start();
require_once './config/sys_config.php';
require_once MB_CONF_DIR  . '/user_config.php';
require_once MB_APP_DIR   . '/global.class.php';
require_once MB_MODEL_DIR . '/oauth.class.php';
require_once MB_MODEL_DIR . '/opent.class.php';
require_once MB_MODEL_DIR . '/api_client.class.php';

echo "====================>> Start <<====================<br>";
//设置logger
$logger = new MBLog($mbConfig["log_path"], "test", false);
MBGlobal::setLogger($logger);

$mb_admin_access_token_arr = MBGlobal::getAdminAccessToken();
$c = new MBApiClient(MB_AKEY, MB_SKEY, $mb_admin_access_token_arr['mb_admin_oauth_token'], $mb_admin_access_token_arr['mb_admin_oauth_token_secret']);

//拉取广播大厅消息
$p =array(
	'p' => 0,
	'n' => 20
);
$response_arr = $c->getPublic($p);

var_dump($response_arr);
var_dump($response_arr[data][info]);
echo "====================>> End <<====================<br>";
?>
